package o2o.dao.TO;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: yangtongkuan
 * Date: 2019/1/10
 * Time: 14:24
 * Description: 红包记录表
 */
public class RedPacketRecordInfoTo {

    private Long id;                // 标识 领取者红包信息(推送红包) 1
    private String sysCustomer;    // 客户标识 1
    private Long pId;               // 所属（red_packet）红包Id 1
    private Long sceneId;           // 营销场景Id 1

    // 分享红包
    private String fromUsername;    //发红包者账号
    private String toUser;          //领红包者姓名
    private String toUserAvatar;    //领红包者姓名
    private Integer selfUsed;       //发布者是否已使用  1已使用 0未使用
    private Integer selfUsedTime;   //发布者使用红包时间

    private String toUsername;      // 接红包者账号 1
    private Double price = 0.0d;           // 红包金额 1
    private Double shopPrice = 0.0d;       // 店铺奖励金额 1
    private Double platformPrice = 0.0d;   // 平台奖励金额 1
    private Double priceRang = 0.0d;       // 红包使用门槛（即大于多少时才可以使用， 1
    private Integer bossType;        // 活动主办方  1平台 2店铺 1
    private Integer packetType;      // 红包类型  1分享红包 2领取红包 1
    private Integer gameType;        // 活动类型  1满减  2满赠  3首单减  4首单赠 1
    private Long shopId;            // 主办方Id（店铺Id） 1
    private String shopUsername;    // 发红包者账号 1
    private String shopName;        // 店铺名称 1
    private String shopAddress;     // 店铺地址 1
    private String name;            // 红包名称 1
    private Integer isUsed;         // 是否已经使用 1
    private Integer isAccept;       // 是否已经领取 1
    private Integer totalCounts;       // 红包数量 1
    private Integer usedCount;         // 已使用红包数量 1
    private String descs;           // 红包描述 1
    private String note;             // 备注 1
    private Long startTime;          // 红包可使用开始时间 1
    private Long endTime;            // 红包可使用结束时间 1
    private Long acceptTime;         // 红包领取时间 1
    private Long usedTime;           // 红包可使用结束时间 1
    private Date executeTim;            // 执行时间
    private Long canUseDays;          // 红包有效天数
    // 分享红包
    private Double sharePrice = 0.0d;
    private Double sharePriceRang = 0.0d;
    private Long shareValidDays;            // 分享红包有效期

    public Double getSharePrice() {
        return sharePrice;
    }

    public RedPacketRecordInfoTo setSharePrice(Double sharePrice) {
        this.sharePrice = sharePrice;
        return this;
    }

    public Double getSharePriceRang() {
        return sharePriceRang;
    }

    public RedPacketRecordInfoTo setSharePriceRang(Double sharePriceRang) {
        this.sharePriceRang = sharePriceRang;
        return this;
    }

    public Long getShareValidDays() {
        return shareValidDays;
    }

    public RedPacketRecordInfoTo setShareValidDays(Long shareValidDays) {
        this.shareValidDays = shareValidDays;
        return this;
    }

    private String createUser;          // 创建者
    private Integer isSmsTip;           // 是否短信提示
    private Integer isAppTip;           // 是否app提示
    private Integer delFlag = 0 ;// 是否已删除(0未删除,1已删除)
    private String extra1;//备用字段1
    private String extra2;//备用字段2
    private String extra3;//备用字段3


    public Integer getIsSmsTip() {
        return isSmsTip;
    }

    public RedPacketRecordInfoTo setIsSmsTip(Integer isSmsTip) {
        this.isSmsTip = isSmsTip;
        return this;
    }

    public Integer getIsAppTip() {
        return isAppTip;
    }

    public RedPacketRecordInfoTo setIsAppTip(Integer isAppTip) {
        this.isAppTip = isAppTip;
        return this;
    }

    public String getCreateUser() {
        return createUser;
    }

    public RedPacketRecordInfoTo setCreateUser(String createUser) {
        this.createUser = createUser;
        return this;
    }

    public Date getExecuteTim() {
        return executeTim;
    }

    public RedPacketRecordInfoTo setExecuteTim(Date executeTim) {
        this.executeTim = executeTim;
        return this;
    }

    public Long getId() {
        return id;
    }

    public RedPacketRecordInfoTo setId(Long id) {
        this.id = id;
        return this;
    }

    public String getSysCustomer() {
        return sysCustomer;
    }

    public RedPacketRecordInfoTo setSysCustomer(String sysCustomer) {
        this.sysCustomer = sysCustomer;
        return this;
    }

    public Long getpId() {
        return pId;
    }

    public RedPacketRecordInfoTo setpId(Long pId) {
        this.pId = pId;
        return this;
    }

    public Long getSceneId() {
        return sceneId;
    }

    public RedPacketRecordInfoTo setSceneId(Long sceneId) {
        this.sceneId = sceneId;
        return this;
    }

    public String getFromUsername() {
        return fromUsername;
    }

    public RedPacketRecordInfoTo setFromUsername(String fromUsername) {
        this.fromUsername = fromUsername;
        return this;
    }

    public String getToUser() {
        return toUser;
    }

    public RedPacketRecordInfoTo setToUser(String toUser) {
        this.toUser = toUser;
        return this;
    }

    public String getToUserAvatar() {
        return toUserAvatar;
    }

    public RedPacketRecordInfoTo setToUserAvatar(String toUserAvatar) {
        this.toUserAvatar = toUserAvatar;
        return this;
    }

    public Integer getSelfUsed() {
        return selfUsed;
    }

    public RedPacketRecordInfoTo setSelfUsed(Integer selfUsed) {
        this.selfUsed = selfUsed;
        return this;
    }

    public Integer getSelfUsedTime() {
        return selfUsedTime;
    }

    public RedPacketRecordInfoTo setSelfUsedTime(Integer selfUsedTime) {
        this.selfUsedTime = selfUsedTime;
        return this;
    }

    public String getToUsername() {
        return toUsername;
    }

    public RedPacketRecordInfoTo setToUsername(String toUsername) {
        this.toUsername = toUsername;
        return this;
    }

    public Double getPrice() {
        return price;
    }

    public RedPacketRecordInfoTo setPrice(Double price) {
        this.price = price;
        return this;
    }

    public Double getShopPrice() {
        return shopPrice;
    }

    public RedPacketRecordInfoTo setShopPrice(Double shopPrice) {
        this.shopPrice = shopPrice;
        return this;
    }

    public Double getPlatformPrice() {
        return platformPrice;
    }

    public RedPacketRecordInfoTo setPlatformPrice(Double platformPrice) {
        this.platformPrice = platformPrice;
        return this;
    }

    public Double getPriceRang() {
        return priceRang;
    }

    public RedPacketRecordInfoTo setPriceRang(Double priceRang) {
        this.priceRang = priceRang;
        return this;
    }

    public Integer getBossType() {
        return bossType;
    }

    public RedPacketRecordInfoTo setBossType(Integer bossType) {
        this.bossType = bossType;
        return this;
    }

    public Integer getPacketType() {
        return packetType;
    }

    public RedPacketRecordInfoTo setPacketType(Integer packetType) {
        this.packetType = packetType;
        return this;
    }

    public Integer getGameType() {
        return gameType;
    }

    public RedPacketRecordInfoTo setGameType(Integer gameType) {
        this.gameType = gameType;
        return this;
    }

    public Long getShopId() {
        return shopId;
    }

    public RedPacketRecordInfoTo setShopId(Long shopId) {
        this.shopId = shopId;
        return this;
    }

    public String getShopUsername() {
        return shopUsername;
    }

    public RedPacketRecordInfoTo setShopUsername(String shopUsername) {
        this.shopUsername = shopUsername;
        return this;
    }

    public String getShopName() {
        return shopName;
    }

    public RedPacketRecordInfoTo setShopName(String shopName) {
        this.shopName = shopName;
        return this;
    }

    public String getShopAddress() {
        return shopAddress;
    }

    public RedPacketRecordInfoTo setShopAddress(String shopAddress) {
        this.shopAddress = shopAddress;
        return this;
    }

    public String getName() {
        return name;
    }

    public RedPacketRecordInfoTo setName(String name) {
        this.name = name;
        return this;
    }

    public Integer getIsUsed() {
        return isUsed;
    }

    public RedPacketRecordInfoTo setIsUsed(Integer isUsed) {
        this.isUsed = isUsed;
        return this;
    }

    public Integer getIsAccept() {
        return isAccept;
    }

    public RedPacketRecordInfoTo setIsAccept(Integer isAccept) {
        this.isAccept = isAccept;
        return this;
    }

    public Integer getTotalCounts() {
        return totalCounts;
    }

    public RedPacketRecordInfoTo setTotalCounts(Integer totalCounts) {
        this.totalCounts = totalCounts;
        return this;
    }

    public Integer getUsedCount() {
        return usedCount;
    }

    public RedPacketRecordInfoTo setUsedCount(Integer usedCount) {
        this.usedCount = usedCount;
        return this;
    }

    public String getDescs() {
        return descs;
    }

    public RedPacketRecordInfoTo setDescs(String descs) {
        this.descs = descs;
        return this;
    }

    public String getNote() {
        return note;
    }

    public RedPacketRecordInfoTo setNote(String note) {
        this.note = note;
        return this;
    }

    public Long getStartTime() {
        return startTime;
    }

    public RedPacketRecordInfoTo setStartTime(Long startTime) {
        this.startTime = startTime;
        return this;
    }

    public Long getEndTime() {
        return endTime;
    }

    public RedPacketRecordInfoTo setEndTime(Long endTime) {
        this.endTime = endTime;
        return this;
    }

    public Long getAcceptTime() {
        return acceptTime;
    }

    public RedPacketRecordInfoTo setAcceptTime(Long acceptTime) {
        this.acceptTime = acceptTime;
        return this;
    }

    public Long getUsedTime() {
        return usedTime;
    }

    public RedPacketRecordInfoTo setUsedTime(Long usedTime) {
        this.usedTime = usedTime;
        return this;
    }

    public Long getCanUseDays() {
        return canUseDays;
    }

    public RedPacketRecordInfoTo setCanUseDays(Long canUseDays) {
        this.canUseDays = canUseDays;
        return this;
    }


    public Integer getDelFlag() {
        return delFlag;
    }

    public RedPacketRecordInfoTo setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
        return this;
    }

    public String getExtra1() {
        return extra1;
    }

    public RedPacketRecordInfoTo setExtra1(String extra1) {
        this.extra1 = extra1;
        return this;
    }

    public String getExtra2() {
        return extra2;
    }

    public RedPacketRecordInfoTo setExtra2(String extra2) {
        this.extra2 = extra2;
        return this;
    }

    public String getExtra3() {
        return extra3;
    }

    public RedPacketRecordInfoTo setExtra3(String extra3) {
        this.extra3 = extra3;
        return this;
    }
}